import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "home",
    component: () => import("@/views/home.vue"),
  },
  {
    path: "/header",
    name: "header",
    component: () => import("@/views/header.vue"),
  },
  {
    path: "/footer",
    name: "footer",
    component: () => import("@/views/footer.vue"),
  },
  {
    path: "/about",
    name: "about",
    component: () => import("@/views/project/about.vue"),
  },
  {
    path: "/ypzx",
    name: "ypzx",
    component: () => import("@/views/project/ypzx.vue"),
  },
  {
    path: "/contact",
    name: "contact",
    component: () => import("@/views/project/contact.vue"),
  },
  {
    path: "/news",
    name: "news",
    component: () => import("@/views/project/news.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/project/login.vue"),
  },
  {
    path: "/member",
    name: "member",
    component: () => import("@/views/project/member.vue"),
  },
  {
    path: "/register",
    name: "register",
    component: () => import("@/views/project/register.vue"),
  },
  {
    path: "/goods1",
    name: "goods1",
    component: () => import("@/views/goods/goods1.vue"),
  },
  {
    path: "/goods2",
    name: "goods2",
    component: () => import("@/views/goods/goods2.vue"),
  },
  {
    path: "/goods3",
    name: "goods3",
    component: () => import("@/views/goods/goods3.vue"),
  },
  {
    path: "/goods4",
    name: "goods4",
    component: () => import("@/views/goods/goods4.vue"),
  },
  {
    path: "/goods5",
    name: "goods5",
    component: () => import("@/views/goods/goods5.vue"),
  },
  {
    path: "/goods6",
    name: "goods6",
    component: () => import("@/views/goods/goods6.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
